import type { AppRouteModule } from "/@/router/types";

import { LAYOUT } from "/@/router/constant";

const about: AppRouteModule = {
  path: "/records",
  name: "Records",
  component: LAYOUT,
  redirect: "/records/index",
  meta: {
    title: "收支",
  },
  children: [
    {
      path: "index",
      name: "RecordList",
      component: () => import("/@/views/records/index.vue"),
      meta: {
        title: "收支",
        showActionBar: true,
        needSearch: true,
        showBottom: true,
        navbarBackgroundColor: "#FFFFFF",
      },
    },
    {
      path: "detail",
      name: "RecordDetail",
      component: () => import("/@/views/records/detail.vue"),
      meta: {
        title: "交易详情",
        showActionBar: true,
        needContract: true,
        navbarBackgroundColor: "#F9F9F8",
      },
    },
  ],
};

export default about;
